public with sharing class IPQPMECPHandler {

    public static String calcOppProjectType(String accLevel, Set<String> intentTypeSet) {
        String rtn = '';
        if (!accLevel.contains('二级') && !accLevel.contains('三级')) {
            if (intentTypeSet.size() >= 3 ) {
                rtn = '多项目';   
            }
            if (intentTypeSet.size() <= 2) {
                rtn = '单项目';
            }
        }
        else
        if (accLevel.contains('三级')) {
           
            if (intentTypeSet.size() >= 5) {
                rtn = '整体打包';
            }
            if (intentTypeSet.size() >= 3 && intentTypeSet.size() < 5) {
                rtn = '多项目';   
            }
            if (intentTypeSet.size() <= 2) {
                rtn = '单项目';
            }
        }  
        else 
        if (accLevel.contains('二级')) {
            
            if (intentTypeSet.size() >= 4) {
                rtn = '整体打包';    
            }
            if (intentTypeSet.size() >= 3 && intentTypeSet.size() < 4) {
                rtn = '多项目';   
            }
            if (intentTypeSet.size() <= 2) {
                rtn = '单项目';          
            }
                   
        }
        else {
            rtn = '';
        }
        //System.debug(rtn);
        return rtn;
    }
}